/*
	Copyright (C) 2013 Pontificia Universidad Catolica del Peru
	contact: http://avatar.inf.pucp.edu.pe/realidad-aumentada/
	address contact: Av. Universitaria 1801, San Miguel, Lima-Peru.
	
	This file is part of UbicAR PUCP.

	This program is free software: you can redistribute it and/or modify
	it under the terms of the GNU General Public License as published by
	the Free Software Foundation, either version 3 of the License, or
	(at your option) any later version.

	This program is distributed in the hope that it will be useful,
	but WITHOUT ANY WARRANTY; without even the implied warranty of
	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
	GNU General Public License for more details.

	You should have received a copy of the GNU General Public License
	along with This program.  If not, see <http://www.gnu.org/licenses/>.
*/
/*
	Authors: Alvaro Roger Agüero Sánchez, Rodolfo Javier Galvez Meza
	Pontificia Universidad Catolica del Peru
	Departamento de Ingeniería
*/

package org.grupoavatar.guiaubicua.punto;

import java.io.Serializable;
import java.util.ArrayList;

import org.grupoavatar.guiaubicua.auxiliares.Servicio;
import org.grupoavatar.guiaubicua.entidades.ARMarker;
import org.grupoavatar.guiaubicua.mix.Marker;

@SuppressWarnings("serial")
public class Lugar implements Serializable {

	private String nombre;
	private String categoria;
	private ArrayList<Servicio> servicios;
	private Marker marker;

	public Lugar(Marker ma) {
		nombre = "Nombre";
		categoria = "Categoria";
		this.marker = ma;
		
		servicios = new ArrayList<Servicio>();
		if (ma != null) {
			ArrayList<Servicio> serv = marker.getPOI().getServicios();
			if (serv != null) {
				for (int i = 0; i < serv.size(); i++) {
					servicios.add(serv.get(i));
				}
			}
		}
//		servicios.add(new Servicio());
//		servicios.add(new Servicio());
//		servicios.add(new Servicio());

	}

	public String getNombre() {
		return nombre;
	}

	public void setNombre(String nombre) {
		this.nombre = nombre;
	}

	public String getCategoria() {
		return categoria;
	}

	public void setCategoria(String categoria) {
		this.categoria = categoria;
	}

	public ArrayList<Servicio> getServicios() {
		return servicios;
	}

	public void setServicios(ArrayList<Servicio> servicios) {
		this.servicios = servicios;
	}

}
